#!/bin/bash
# joueurHexxagon

# export LD_LIBRARY_PATH=/applis/sicstus-3.11.2/lib/ &
# export LD_LIBRARY_PATH=/home/najim/Downloads/sp-4.2.3-x86-linux-glibc2.12/lib/ &
export LD_LIBRARY_PATH=.:/home/najim/Downloads/sp-4.2.3-x86-linux-glibc2.12/lib/
# JASPER_PATH = '/home/najim/Downloads/sp-4.2.3-x86-linux-glibc2.12/bin/sp-4.2.3/sicstus-4.2.3/bin/jasper.jar'
JASPER_PATH="./jasper.jar:."

make
javac jSicstus.java -cp $JASPER_PATH
# ./arbitre $2 &!
# ./arbitre_sans_timeoutvalid $2 &!
gnome-terminal --title="joueur $3" -e "./joueurHexx 						$1 $2 $3 $4" &!
gnome-terminal --title="IA $3"	 -e "java -cp $JASPER_PATH	jSicstus	$4" &!
# gnome-terminal --title="joueur2" -e "./joueurHexx 						$1 $2 \"jpaneri\" $4" &!
# gnome-terminal --title="IA2"	 -e "java -cp $JASPER_PATH	jSicstus	$1 $4"